<html ng-app="app">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link href="../../build/common/base.css" rel="stylesheet">
	<script type="text/javascript" src="../../build/common/base.js"></script>
	<script type="text/javascript" src="../../build/common/ngEdit.js"></script>
	<script type="text/javascript">

		var app = angular.module('app', ['baseDirective']);
		app.controller("ctrl", [ '$scope', 'baseService','ArrayToolService', function($scope, baseService,ArrayTool) {
			$scope.ArrayTool=ArrayTool;
			
			$scope.addRow=function(classVar){
				$scope.data[classVar +"List"].push({});
			}
			
			$scope.$root.$on('afterSaveEvent', function(event,data){
				if(parent.reload){
					parent.reload();
				}
				if(data.r){
					location.reload();
				}else{
					$.Dialog.close(window);	
				}
			});
		}]);
	</script>
</head>
<body class="panel success" ng-controller="ctrl">
	<div class="panel-heading">
		<button  class="btn btn-primary fa-save" ng-model="data" ab-save="/sys/zcYssh/save">保存</button>
		<button class="btn btn-primary fa-close" onclick="javascript:$.Dialog.close(window);">关闭</button>
	</div>
	<form name="form" method="post" ab-load="/sys/zcYssh/get?id={id}" ng-model="data">
		<table class="form-table">
			<tr>								
				<th>项目名称:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.xmmc"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>登记日期:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.djrq"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>跟进人员:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.gjry"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>项目编号:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.xmbh"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>任务编号:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.rwbh"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>任务名称:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.rwmc"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>一级目录:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.yjml"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>二级目录:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.ejml"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>三级目录:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.sjml"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>备注:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.bz"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>数量:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.sl"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>单位:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.dw"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>人工工时:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.rggs"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>人工费:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.rgf"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>材料:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.cl"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>分包:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.fb"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>机具:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.jj"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>其它:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.qt"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>合计元:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.hjy"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>合同额:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.hte"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>税额:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.se"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
			<tr>								
				<th>含税合计:</th>
				<td>
					<input class="form-control" type="text" ng-model="data.hshj"   ab-validate="{required:false,maxlength:150}"  />
				</td>								
			</tr>
		</table>
		
	</form>
</body>
</html>